package com.ruoyi.web.dto;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.framework.web.contants.AbnormalConstants;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * QGPay充值DTO
 *
 * @since 2023-03-15
 */
@Data
public class QgPayRechargeDetailAddDTO extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 法币编码
     */
    @NotBlank(message = AbnormalConstants.MANDATORY_PARAM_EMPTY_OR_MALFORMED)
    private String legalTenderCode;

    /**
     * 业务编码
     */
    @NotBlank(message = AbnormalConstants.MANDATORY_PARAM_EMPTY_OR_MALFORMED)
    private String businessCode;

    /**
     * 法币金额
     */
    @NotNull(message = AbnormalConstants.MANDATORY_PARAM_EMPTY_OR_MALFORMED)
    @DecimalMin(value = "1", message = AbnormalConstants.MANDATORY_PARAM_EMPTY_OR_MALFORMED)
    private BigDecimal amount;
}
